package com.vueadmin.zxn.model;

import java.io.Serializable;

/**
 * room
 * @author 
 */
public class Room implements Serializable {
    private String id;

    private String roomwidth;

    private String roomheight;

    private String roomdoor;

    private String roomlength;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRoomwidth() {
        return roomwidth;
    }

    public void setRoomwidth(String roomwidth) {
        this.roomwidth = roomwidth;
    }

    public String getRoomheight() {
        return roomheight;
    }

    public void setRoomheight(String roomheight) {
        this.roomheight = roomheight;
    }

    public String getRoomdoor() {
        return roomdoor;
    }

    public void setRoomdoor(String roomdoor) {
        this.roomdoor = roomdoor;
    }

    public String getRoomlength() {
        return roomlength;
    }

    public void setRoomlength(String roomlength) {
        this.roomlength = roomlength;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Room other = (Room) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getRoomwidth() == null ? other.getRoomwidth() == null : this.getRoomwidth().equals(other.getRoomwidth()))
            && (this.getRoomheight() == null ? other.getRoomheight() == null : this.getRoomheight().equals(other.getRoomheight()))
            && (this.getRoomdoor() == null ? other.getRoomdoor() == null : this.getRoomdoor().equals(other.getRoomdoor()))
            && (this.getRoomlength() == null ? other.getRoomlength() == null : this.getRoomlength().equals(other.getRoomlength()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getRoomwidth() == null) ? 0 : getRoomwidth().hashCode());
        result = prime * result + ((getRoomheight() == null) ? 0 : getRoomheight().hashCode());
        result = prime * result + ((getRoomdoor() == null) ? 0 : getRoomdoor().hashCode());
        result = prime * result + ((getRoomlength() == null) ? 0 : getRoomlength().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", roomwidth=").append(roomwidth);
        sb.append(", roomheight=").append(roomheight);
        sb.append(", roomdoor=").append(roomdoor);
        sb.append(", roomlength=").append(roomlength);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}